{{define "infoCollection/pastMedicalHistory_txbgas.html"}}
<div class="box box-info" style="box-shadow: none;margin-bottom: 0;">
    <div class="box-header with-border">
        <h3 class="box-title">同型半胱氨酸水平</h3>
    </div>
    <div class="box-body">
        <div class="form-group">
            <label class="control-label col-sm-3">是否正常:
            </label>
            <div class="radio col-sm-9">
                <input type="radio" name="gas" value="正常" class="minimal" checked>&nbsp;&nbsp;正常
                <input type="radio" name="gas" value="异常" class="minimal">&nbsp;&nbsp;异常
            </div>
        </div>
        <div class="form-group" id="gas_is_fuyao_div" style="display: none;">
            <label class="control-label col-sm-3"><span
                    style="color: red;font-weight: bold;">是否药物控制:</span></label>
            <div class="radio col-sm-3">
                <input type="radio" name="gas_is_fuyao" value="否" class="minimal">&nbsp;&nbsp;否&nbsp;
                <input type="radio" name="gas_is_fuyao" value="是" class="minimal">&nbsp;&nbsp;是&nbsp;
            </div>
        </div>
        <div class="form-group" id="gas_yongyao_pinzhong" style="display: none;">
            <label class="control-label col-sm-3"><span
                    style="color: red;font-weight: bold;">用药品种:</span></label>
            <div class="checkbox col-sm-9">
                <input type="checkbox" name="gas_yongyao_pinzhong" value="叶酸片" class="minimal">&nbsp;&nbsp;叶酸片&nbsp;
                <input type="checkbox" name="gas_yongyao_pinzhong" value="维生素B12" class="minimal">&nbsp;&nbsp;维生素B12&nbsp;
                <input type="checkbox" name="gas_yongyao_pinzhong" value="维生素B6" class="minimal">&nbsp;&nbsp;维生素B6&nbsp;
            </div>
        </div>
    </div>
</div>
        <script>
            $(function () {
                gasDeal();
            });


            function gasDeal() {
                $("input:radio[name='gas']").on('ifChanged', function (event) {
                    if ($(this).is(':checked')) {
                        if ($(this).val() == "异常") {
                            $("#gas_is_fuyao_div").show();
                        } else {
                            $("#gas_is_fuyao_div").hide();
                            $("#gas_yongyao_pinzhong").hide();
                            $("input:radio[name='gas_is_fuyao']").iCheck('uncheck');
                            $("input:checkbox[name='gas_yongyao_pinzhong']").iCheck('uncheck');
                        }
                    }
                });
                $("input:radio[name='gas_is_fuyao']").on('ifChanged', function (event) {
                    if ($(this).is(':checked')) {
                        if ($(this).val() == "是") {
                            $("#gas_yongyao_pinzhong").show();
                        } else {
                            $("#gas_yongyao_pinzhong").hide();
                            $("input:checkbox[name='gas_yongyao_pinzhong']").iCheck('uncheck');
                        }
                    }
                });
            }
        </script>
{{end}}